package com.itkjb.leisurely.center.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itkjb.leisurely.center.sys.model.SysDepartmentModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 组织结构 Mapper 接口
 * </p>
 *
 * @author leisure_gen
 * @since 2020-06-12
 */
public interface SysDepartmentMapper extends BaseMapper<SysDepartmentModel> {

    /**
     * 为已登录的用户提供查询 根据用户id  查询用户的所在组织
     * @param userId
     * @return
     */
    List<SysDepartmentModel> findUserDepsByUserId(@Param("userId")String userId);
}
